let imgwidth=450,imgsize=7,every=0;
		let imgtime;
		// 控制轮播左移
		function leftmove(){
			every-=30;
			console.log(every)
			if(every==-2730){
				every=-2700
			}
			let s = document.querySelector("#lunbo");
			s.style.left=every+"px";
			imgtime = setTimeout(leftmove,10);
			if(every%imgwidth==0){
				clearTimeout(imgtime);
			}
		}
		// 控制轮播右移
		function rightmove(){
			every+=30;
			if(every==30){
				every=0
			}
			let s = document.querySelector("#lunbo");
			s.style.left=every+"px";
			imgtime = setTimeout(rightmove,10);
			if(every%imgwidth==0){
				clearTimeout(imgtime);
			}
		}
		// 商品详情页的折叠js
		function test(obj) {
			let flod = document.querySelector("#fold");
			let b = flod.style.display;
			console.log(b)
			if (flod.style.display == "block") {
				flod.style.display = "none";
				obj.src = "img/downward.png";
			} else {
			 flod.style.display = "block";
				obj.src = "img/upward.png";
			}
		}
		// 商品评价的折叠js
		function test1(obj) {
			let raise = document.querySelector("#raise");
			let b = raise.style.display;
			console.log(b)
			if (raise.style.display == "block") {
				raise.style.display = "none";
				obj.src = "img/downward.png";
			} else {
				raise.style.display = "block";
				obj.src = "img/upward.png";
			}
		}

		// function chuanid(sid){
		// 	location.href="/productDetails?v=memory&eid="+sid;
		// }

